a='today is a good day'
c='TODAY IS A GOOD DAY'
print(a.replace(' ',''))#replace复制
b='D:\\软件\python\\python'
print(b.split('\\'))#split切割
print(a.upper())#upper所有字母转换为大写
print(a.capitalize())#将首字母转化为大学写
print(a.lower())
d='2023年-3月-25日'
count=0
for s in d:
    if s in [str(s) for s in range(10)]:
       count+=1
print(count)
m='ljboityguih'
q=m[3:8:1]
print(q)
print(m[3:8:2])
name='张泽龙'
age=22
sex='男'
print(name,age,sex)
print('name:{}\nage:{}\nsex:{}'.format('张泽龙',22,'男'))